﻿using Shop.Interface;
using Shop.Product.Entity;
using System.Collections.Generic;
using Shop.Entity;
using Shop.Product.Entity.Insert;
using Shop.Product.Entity.Update;

namespace Shop.Product.Interface
{
    public interface IProductBaseType : IBase
    {
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="t">修改信息</param>
        /// <param name="com">操作人信息</param>
        /// <returns>true/false </returns>
        bool Update(UpdateProductBaseType t, ComUser com);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="t">修改信息</param>
        /// <param name="com">操作人信息</param>
        /// <returns>true/false </returns>
        bool Insert(AddProductBaseType t, ComUser com);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="typeName">分类名称</param>
        /// <param name="isDel">是否已删除</param>
        /// <param name="isShow">是否前端显示</param>
        /// <param name="parentId">父级分类</param>
        /// <param name="pageIndex">当前第几页</param>
        /// <param name="pageSize">每页显示数量</param>
        /// <param name="total">输出总数</param>
        /// <returns></returns>
        List<ProductBaseTypePo> GetPage(string typeName, int isDel,int isShow, int parentId,int pageIndex, int pageSize, out int total);
    }
}
